﻿namespace Kernelx.Contexts.Core
{
    /// <summary>
    /// 
    /// </summary>
    public class DefaultCurrentUser : ICurrentUser
    {

        /// <summary>
        ///<inheritdoc/>  
        /// </summary>
        public string Id { get; private set; }

        /// <summary>
        ///<inheritdoc/>  
        /// </summary> 
        public string Name { get; private set; }

        /// <summary>
        ///<inheritdoc/>  
        /// </summary> 
        public bool IsAuthenticated { get; private set; }

        /// <summary>
        ///<inheritdoc/>  
        /// </summary> 
        public string Phone { get; private set; }
        /// <summary>
        ///<inheritdoc/>  
        /// </summary> 
        public string ClientIdentifier { get; private set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <param name="isAuthenticated"></param>
        /// <param name="phone"></param>
        /// <param name="clientIdentifier"></param>
        public DefaultCurrentUser(string id, string name, bool isAuthenticated, string phone = null, string clientIdentifier = null)
        {
            Id = id;
            Name = name;
            IsAuthenticated = isAuthenticated;
            Phone = phone;
            ClientIdentifier = clientIdentifier;
        }

    }

}
